#define _CRT_SECURE_NO_WARNINGS

#include "RBTree.h"

int main()
{
	int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
	RBTree<int, int> t1;
	for (auto e : a)
	{
		/*	if (e == 14)
			{
			int x = 0;
			}*/

		t1.insert(make_pair(e, e));
		//cout << e  << endl;
	}

	RBTree<int, int> t2 = t1;
	t1.InOrder();
	cout << t1.IsBalance() << endl;
	t2.insert({ 9,9 });
	t2.insert({ 0,9 });
	t2.insert({ 10,9 });


	t2.InOrder();

	RBTree<int, int> t3;
	t3 = t1;
	t3.insert({ 9,9 });
	t3.insert({ 0,9 });
	t3.insert({ 10,9 });

	t3.InOrder();
}